<% for (var i in arr) {%>

<% var userInfo = _.find(user,function(val,key){return key == arr[i][0].toLowerCase()}); userInfo = userInfo ? userInfo : {};%>

<li uid="<%=userInfo.usr_id%>" username=<%=arr[i][0]%>>
    <label>
          <% if (parseInt(userInfo.numberofpictures)) { %>
              <img class="imglazyload"  src = "" url="<%=userInfo.icon%>" />
          <% } else { %>
              <% if (parseInt(userInfo.gender) == 1) {%> 
                   <img class="imglazyload"  src = "" url="<%=defaultImg%>icon_male.png" />
              <% } else {%>          
                   <img class="imglazyload"  src = "" url="<%=defaultImg%>icon_remale.png" />
              <% } %>
          <% } %>
    </label>
    <div class='info'> <%=arr[i][0]%> </div>
</li>
<% } %>
